﻿@model eShop.Web.Models.FavoriteProductListModel
@{
    Layout = null;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>商品收藏夹-@{@WorkContext.ShopConfig.SiteTitle}</title>
    @Html.Raw(WorkContext.ShopConfig.SEOKeyword)
    @Html.Raw(WorkContext.ShopConfig.SEODescription)
    <link href="@{@WorkContext.CSSCDN}/themes/default/css/base.css" rel="stylesheet" type="text/css" />
    <link href="@{@WorkContext.CSSCDN}/themes/default/css/ucenter.css" rel="stylesheet" type="text/css" />
    <script src="@{@WorkContext.ScriptCDN}/scripts/jquery.js" type="text/javascript"></script>
    <script src="@{@WorkContext.ScriptCDN}/scripts/common.js" type="text/javascript"></script>
    <script src="@{@WorkContext.ScriptCDN}/scripts/ucenter.user.js" type="text/javascript"></script>
    <script type="text/javascript">
        uid = @WorkContext.Uid;
        isGuestSC = @WorkContext.ShopConfig.IsGuestSC;
        scSubmitType = @WorkContext.ShopConfig.SCSubmitType;
    </script>
</head>

<body>
@Html.Partial("_header")

<div class="bigBox" id="member">
<div class="box">
@Html.Partial("_menu")
<div id="memberR">
    <h2 id="memberRT">收藏商品
        @*<div class="searchList">
            <select>
  <option>最近3个月</option>
  <option>今年内</option>
</select>
            <select>
<option>全部状态</option>
<option>等待付款</option>
<option>等待自提</option>
<option>等待收货</option>
<option>已完成</option>
<option>已取消</option>
</select>
            <input type="text" class="text" value="商品名称、商品编号、订单编号" /><a href="javascript:;" class="whiteBT">搜索</a>
            <div class="clear"></div>
        </div>*@
    </h2>
    <div class="favT">
      @*<label><input type="checkbox" />全选</label>*@
        <div class="favTpage">
            共有 <b>@Model.PageModel.TotalCount</b> 条记录<i>
            <font color="#ff6600">@Model.PageModel.PageNumber</font>/@Model.PageModel.TotalPages </i> &nbsp; 
            @if (Model.PageModel.HasPrePage)
            { 
                <a href = "@Url.Action("favoriteproductlist", new RouteValueDictionary { {"page", Model.PageModel.PrePageNumber} })" class="whiteBT">上一页</a>@:&nbsp; 
            }
            else
            {
                <a href="javascript:;" class="whiteBT">上一页</a>@:&nbsp; 
            }
            @if (Model.PageModel.HasNextPage)
            {
                <a href = "@Url.Action("favoriteproductlist", new RouteValueDictionary { { "page", Model.PageModel.NextPageNumber } })" class="whiteBT">下一页</a>
            }
            else
            {
                <a href="javascript:;" class="whiteBT">下一页</a>
            } 
        </div>
    </div>
    <table width="100%" border="0" cellspacing="0" class="dingdan">
         <thead>
          <tr>
            <th @*colspan="2"*@ valign="bottom">商品信息</th>
            <th>价格</th>
            <th>操作</th>
            </tr>
        </thead>
        <tbody>
            @foreach (DataRow row in Model.ProductList.Rows)
            {
           <tr id="favoriteProduct@{@row["pid"]}">
                @*<td><input type="checkbox" /></td>*@
                <td>
                <div class="proList">
                    <img src="@{@WorkContext.ImageCDN}/upload/product/show/thumb60_60/@row["showimg"]" width="50" height="50" /><a href="@Url.Action("product", "catalog", new RouteValueDictionary { { "pid", row["pid"] } })">@row["name"]<br /></a>
                    @*<div class="memberStar"><div class="star"><span class="star_yellow" style=" width:80%;">&nbsp;</span></div>
                    <a href="#">10267评价</a></div>*@
                    <div class="clear"></div>
                </div>
                </td>
                <td>@row["shopprice"]<br /></td>
                <td><a href="javascript:delFavoriteProduct(@row["pid"])">删除</a></td>
            </tr>
            }
        </tbody>
    </table>

<div class="favT">
    @*<label><input type="checkbox" />全选</label>*@
    <div class="favTpage">
        共有 <b>@Model.PageModel.TotalCount</b> 条记录<i>
        <font color="#ff6600">@Model.PageModel.PageNumber</font>/@Model.PageModel.TotalPages </i> &nbsp; 
        @if (Model.PageModel.HasPrePage)
        { 
            <a href = "@Url.Action("favoriteproductlist", new RouteValueDictionary { {"page", Model.PageModel.PrePageNumber} })" class="whiteBT">上一页</a>@:&nbsp; 
        }
        else
        {
            <a href="javascript:;" class="whiteBT">上一页</a>@:&nbsp; 
        }
        @if (Model.PageModel.HasNextPage)
        {
            <a href = "@Url.Action("favoriteproductlist", new RouteValueDictionary { { "page", Model.PageModel.NextPageNumber } })" class="whiteBT">下一页</a>
        }
        else
        {
            <a href="javascript:;" class="whiteBT">下一页</a>
        } 
    </div>
</div>

</div>

<div class="clear"></div>
</div>
<div class="clear"></div>
</div>


@Html.Partial("_footer")
</body>
</html>